<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <title>title</title>
      <link rel="stylesheet" type="text/css" href="../css/api.css"/>
      <style>
          html, body{
background: #ededed
          }
          #main{
background: #ededed
          }#wrap {
    height: 100%;
}.flex-wrap {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}
      </style>
  </head>
  <body><div id="wrap" class="flex-wrap flex-vertical">
    <div id="main" class="flex-con">
<img  onclick="qk()" tapmode src="../image/qfzssz.png" width="100%">
    </div>
    </div>
  </body>
  <script type="text/javascript" src="../script/api.js"></script>
  <script type="text/javascript">
  function qk(){


    var dialogBox = api.require('dialogBox');
  dialogBox.alert({
      texts: {
          title: '',

          content: '清空此功能消息记录',
          leftBtnTitle: '取消',
          rightBtnTitle: '清空',
           titleSize: 14
      },
      styles: {
          bg: '#fff',
          w: 250,
          corner:10,
          title: {
              marginT: 30,

              iconSize: 40,
              titleSize: 14,
              titleColor: '#000'
          },
          content: {
              color: '#000',
              size: 14
          },
          left: {
              marginB: 7,
              marginL: 20,
              w: 100,
              h: 35,
              corner: 2,
              bg: '#fff',
              color: '#000',
              size: 14
          },
          right: {
              marginB: 7,
              marginL: 10,
              w: 100,
              h: 35,
                color: '#2B65B7',
              corner: 2,
              bg: '#fff',
              size: 14
          },
          horizontalLine:{
   color:'rgba(245,245,245,0)', //（可选项）字符串类型；左右按钮上边横线的颜色，支持rgb、rgba、#；默认：'rgba(245,245,245,0)'
   height:1                //（可选项）数字类型；左右边按钮横线的高度；默认：0
 },
   verticalLine:{
       color:'rgba(245,245,245,0)', //（可选项）字符串类型；左右按钮中间竖线的颜色，支持rgb、rgba、#；默认：'rgba(245,245,245,0)'
     width:1                 //（可选项）数字类型；左右边按钮竖线的高度；默认：0
   }
      }
  }, function(ret) {
      if (ret.eventType == 'left') {
          var dialogBox = api.require('dialogBox');
          dialogBox.close({
              dialogName: 'alert'
          });
      }else{
  var dialogBox = api.require('dialogBox');
        dialogBox.close({
            dialogName: 'alert'
        });


        var jsfun = 'hideqf();';
        api.execScript({
            name: 'root',
            frameName: 'frame0',
            script: jsfun
        });


        api.openWin({
             name: 'xjqfwin',
             url: './xjqfwin.html',
             pageParam: {
                 name: 'test'
             }
         });
      }
  });


  /* api.openWin({
       name: 'xjqfwin',
       url: './xjqfwin.html',
       pageParam: {
           name: 'test'
       }
   });
*/

  }
      apiready = function(){
        $api.css($api.byId('main'),'height:'+api.winHeight+" px");

      };
  </script>
  </html>
